<?php
// +----------------------------------------------------------------------
// | Tpli [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 工作分类模型
// +----------------------------------------------------------------------
namespace app\index\model;

use think\Model;

class Vocation extends Model
{
  public function work()
  {
    //关联工作表一对多
    return $this->hasMany('work','voc_id','id');
  }
  
}
?>